package main.java.com.cooljie.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by ACER on 2017/3/24.
 */
@Controller
public class HelloController {
//你好ַ
    @RequestMapping({"/hello","/"})
    public String hello(String username ,Model model){
        System.out.println(username);
        model.addAttribute("name",username);
        return "hello";

    }

}
